import React from 'react'
import {Modal, Button, Input, Select} from 'antd';

// import '../../assets/css/home/recharge.less'
import Utils from "../../common/Utils";
import App from "../../common/App";

const id_div = 'div-dialog-staffDetail';

  
export class StaffDetail extends React.Component {

    constructor(props) {
        super(props);
        this.state = {
            data: [],
            alloter: '',
            user: this.props.user, // 获取订单ID
            userDetail:{},
        };
        this.timeout = null;
    }

    componentDidMount(){
        this.staffDetail() // 获取当前员工信息
    }

    // 获取当前匹配的所有工匠名称
    staffDetail = () => {
        App.api('adm/xxx',{user: this.state.user}).then((result) => {
            this.setState({
                userDetail: result
            })
        })
    }

    // 取消
    close = () => {
        Utils.common.closeModalContainer(id_div);
    };

    // 查看详情
    lookDetail = () => {
        this.props.router.push(); 
    }

    render() {
        let {alloter} = {...this.state};
        return (
            <Modal
                getContainer={() => Utils.common.createModalContainer(id_div)}
                visible={true}
                title="员工详细信息"
                width='625px'
                onCancel={() => this.close(id_div)}
                footer={null}>
                <div className='dialog-recharge'>
                    <div className='line'>
                        <p>员工工号：<span>12312</span></p>
                        <p>员工姓名：<span>大哥</span></p>
                        <p>联系电话：<span>15021129900</span></p>
                        <p>联系地址：<span>浙江省杭州市西湖区文一路 2387 号东方明珠花园 11 号楼 1865 号</span></p>                        
                    </div>
                    <div className='line'>
                        <p>员工性别：<span>女</span></p>
                        <p>出生日期：<span>1989-12-12</span></p>                      
                    </div>
                    <div className='line'>
                        <p>工作职位：<span>12312</span></p>
                        <p>所属城市：<span>大哥</span></p>
                        <p>接单数量：<span>123,321</span></p>                    
                        <p>客户评分：
                            <Rate 
                                disabled defaultValue={0}
                            />
                            <span style={{color:'#2f9be9',fontSize:'12px'}}>未评价</span>
                        </p>  
                        <p>备注信息：<span>— — — — — — — — — —</span></p>                                                                 
                    </div>

                </div>

            </Modal>)
    }

}
